#include "RecordNode.h"
using namespace Tree;

RecordNode::RecordNode() {
	this->key = "";
	this->leftReference = -1;
	this->rightReference = -1;
	this->offsets = new vector<int> ();
}

string RecordNode::getKey() const {
	return key;
}

int RecordNode::getLeftReference() const {
	return leftReference;
}

int RecordNode::getRightReference() const {
	return rightReference;
}

vector<int> *RecordNode::getOffsets() const {
	return offsets;
}

void RecordNode::setKey(string key) {
	this->key = key;
}

void RecordNode::setLeftReference(int leftReference) {
	this->leftReference = leftReference;
}

void RecordNode::setRightReference(int rightReference) {
	this->rightReference = rightReference;
}

void RecordNode::setOffsets(vector<int> *offsets) {
	this->offsets = offsets;
}

RecordNode::~RecordNode() {
	delete offsets;
}
